home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / bootup / boot_a2m / darklord / mod_head.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-02  |  2.7 KB  |  50 lines

  1. /* Structure for the data block passed to DarkLord when a module is 
  2. called. The data should include: */
  3.  
  4. typedef struct dkl_info {
  5.     short dk_xres;                /* the screen width in pixels */
  6.     short dk_yres;                /* the screen height in pixels */
  7.     short dk_handle;            /* the VDI virtual workstation handle */
  8.     short dk_pens;                /* the maximum number of available colour pens (e.g. ST high=2, ST low=16, Falcon True colour=256) */
  9.     short dk_colsloaded;        /* the number of colours present in the palette contained in the currently loaded DKL file (0 if there is no DKL file loaded) */
  10.     short dk_planes;            /* the number of bitplanes in this screen resolution (True Colour returns 16) */
  11.     int tc_flag;                /* set to 1 if True Colour mode, 0 otherwise */
  12.     int *dklord_flag;            /* the exit flag, set to non-zero on entry to the module */
  13.     int *counter;                /* pointer to the countdown flag available to the module */
  14.     short *loaded_palette;        /* pointer to the colour palette loaded when the DKL file was loaded (or to a copy of the existing colour palette if no DKL file was loaded) */
  15.     void *screen_ram;            /* pointer to the start of screen RAM */
  16.     unsigned long gdos;            /* flag for the presence of GDOS and which GDOS type */
  17.     int dk_flag1;                /* the chosen state for flag 1, ranges from 1-6 */
  18.     int dk_flag2;                /* as for flag 1 */
  19.     int dk_flag3;                /* as for flag 1 */
  20.     int dk_min1;                /* the minimum value of variable 1 (this is not user-changeable) */
  21.     int dk_max1;                /* the maximum value of variable 1 (this is not user-changeable) */
  22.     int dk_start1;                /* the value set by the user for variable 1 */
  23.     int dk_min2;                /* as for variable 1 */
  24.     int dk_max2;                /* as for variable 1 */
  25.     int dk_start2;                /* as for variable 1 */
  26.     int dk_min3;                /* as for variable 1 */
  27.     int dk_max3;                /* as for variable 1 */
  28.     int dk_start3;                /* as for variable 1 */
  29.     char *dk_line1;                /* pointer to the first line of the message the user wishes to be displayed */
  30.     char *dk_line2;                /* pointer to the second line of the message the user wishes to be displayed */
  31.     char *dk_line3;                /* pointer to the third line of the message the user wishes to be displayed */
  32.     char dk_errmes[35];            /* holder for the message the module can pass back to DarkLord */
  33.     char *dk_fontname;            /* pointer to the chosen font name */
  34.     } DKL_INFO;
  35.  
  36.  
  37. /* GDOS codes - one of these is passed in the GDOS flag of the above
  38. structure on entry to the module */
  39. /* These codes are provided in vdi.h for Lattice users (version 5.6)
  40. and are therefore commented out here */
  41.  
  42. /*
  43. #define GDOS_NONE    0xfffffffe    /* no GDOS */
  44. #define GDOS_FSM    0x5f46534d    /* _FSM */
  45. #define GDOS_FNT    0x5f464e54    /* _FNT */
  46. */
  47.  
  48. /* Function prototype for main() */
  49. int main(DKL_INFO *);
  50.